#ifndef LOGIN_H
#define LOGIN_H

#include <QWidget>
#include <QWidget>
#include <QDebug>
#include <QFile>
#include <QPoint>
#include <QMouseEvent>
#include <QMessageBox>
#include <QIcon>
namespace Ui {
class Login;
}

class Login : public QWidget
{
    Q_OBJECT

public:
    explicit Login(QWidget *parent = 0);
    ~Login();

protected:
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);

private:
    Ui::Login *ui;
    bool isPress=false;
    QPoint startPos;
    QPoint endPos;
    QIcon icon;
/*
 * 信号必须用signals关键字来声明
 * 信号没有返回值，但可以有参数
 * 使用：emit mySignal();
 *
*/
signals:
    void loginSingle(QString,QString);
    void exitLogin();

public:
    void on_clicked_showMain();   
private slots:
    void on_btn_login_clicked();
    void quitLogin();
    void on_close_clicked();
};

#endif // LOGIN_H
